<?php
// 本类由系统自动生成，仅供测试用途
class CommonAction extends Action{
	 
	public function _initialize() {
		
		$welcome = "";	
		$welcome['se'] = "|";		
		if(Cookie::get('acc_name') != ""){
			$welcome['wel'] = "欢迎您再次回来!";
			$welcome['hello'] = "登陆成功!";	
			$welcome['user'] = 	Cookie::get('acc_name');
			$welcome['url_1'] = "__APP__/member/ucenter";
			$welcome['str_1'] = "用户中心";
			$welcome['url_2']	= "__APP__/public/logout";	
			$welcome['str_2']	= "注销";		
		}
		else{
			$welcome['hello'] = "欢迎来到";
			$welcome['sys_name'] = c('CMS_NAME');
			$welcome['url_1'] = "__APP__/public/login";
			$welcome['str_1'] = "登陆";
			$welcome['url_2'] = "__APP__/public/reg";
			$welcome['str_2'] = "注册";			
		}
		
		$nav_arr = d("channel")->select();		
		$this->assign ( "nav_arr", $nav_arr );
		$this->assign ("welcome", $welcome);
		$this->assign ( "title", c('CMS_NAME'));	
	}  


	 

}
?>